package icu.zqyhdm.blog.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import icu.zqyhdm.blog.entity.Tag;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Description 上传的文章文章信息，作者信息通过token传递
 * @Author lifu
 * @Date 2021/6/22 14:57
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "上传的文章文章信息")
public class ArticleUploadVo {

    @ApiModelProperty(value = "id")
    private Integer id;

    @NotBlank(message = "文章标题不能为空")
    @ApiModelProperty(value = "文章标题")
    private String title;

    @NotBlank(message = "文章内容不能为空")
    @ApiModelProperty(value = "内容")
    private String content;

    @NotBlank(message = "文章的简要描述不能为空")
    @ApiModelProperty(value = "简要描述")
    private String description;

    @ApiModelProperty(value = "首图")
    private String firstPicture;

    @NotNull(message = "文章的类型不能为空")
    @ApiModelProperty(value = "文章类型id")
    private Integer typeId;

    @NotEmpty(message = "文章的标签不能为空")
    @ApiModelProperty(value = "文章标列id")
    private List<Integer> tagIdList;

    @ApiModelProperty(value = "置顶(1:置顶，0:非置顶)")
    private Integer top;

    @ApiModelProperty(value = "0草稿，1待审核，2为发表")
    private Integer status;
}
